//
//  XMWantTableViewCell.m
//  Second
//
//  Created by Alex on 16/7/15.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "XMWantTableViewCell.h"
@interface XMWantTableViewCell ()

@end


@implementation XMWantTableViewCell

- (void)awakeFromNib {
    
  //  self.headerImage.layer.masksToBounds = YES;
   // self.headerImage.layer.cornerRadius = 20;

}

- (void)setCellWithModel:(XMSecondModel *)model {
    
    if (model.images.count > 0) {
        
        [self.headerImage sd_setImageWithURL:[NSURL URLWithString:model.images[0]]];
        
    } else {
        
        [self.headerImage sd_setImageWithURL:[NSURL URLWithString:model.head_image]];
    }
    
    self.place.text = model.current_price;
    
    
}


- (IBAction)iwantto:(UIButton *)sender {
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];


    
}

@end
